package io.renren.modules.app.service.jiaxiaotong;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.baomidou.mybatisplus.annotations.DataSource;

import io.renren.datasources.DataSourceNames;
import io.renren.modules.app.entity.jiaxiaotong.Teacher;

@DataSource(name = DataSourceNames.SECOND)
public interface ITeacher extends JpaRepository<Teacher, String> {
	@DataSource(name = DataSourceNames.SECOND)
	@Query(value = "SELECT * FROM `js_sys_user`", nativeQuery = true)
	public List<Teacher> findMy();
}
